package com.wf.classRoomTest.staticproxy;

public class RealImage implements Image {
    private String filename;
    
    public RealImage(String filename) {
        this.filename = filename;
        loadImageFromDisk();
    }
    
    private void loadImageFromDisk() {
        System.out.println("正在加载图片" + filename+"中....");
    }
    
    @Override
    public void display() {
        System.out.println("展示图片：" + filename);
    }
}